<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>

<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->

<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->

<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->

<!-- BEGIN HEAD -->

<head>

	<meta charset="utf-8" />

	<title>后台管理 | 文章列表</title>

	<meta content="width=device-width, initial-scale=1.0" name="viewport" />

	<meta content="" name="description" />

	<meta content="" name="author" />

	<!-- BEGIN GLOBAL MANDATORY STYLES -->

	<link href="/Blog/public/media/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>

	<link href="/Blog/public/media/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>

	<link href="/Blog/public/media/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>

	<link href="/Blog/public/media/css/style-metro.css" rel="stylesheet" type="text/css"/>

	<link href="/Blog/public/media/css/style.css" rel="stylesheet" type="text/css"/>

	<link href="/Blog/public/media/css/style-responsive.css" rel="stylesheet" type="text/css"/>

	<link href="/Blog/public/media/css/default.css" rel="stylesheet" type="text/css" id="style_color"/>

	<link href="/Blog/public/media/css/uniform.default.css" rel="stylesheet" type="text/css"/>

	<!-- END GLOBAL MANDATORY STYLES -->

	<!-- BEGIN PAGE LEVEL STYLES -->

	<link rel="stylesheet" href="/Blog/public/media/css/DT_bootstrap.css" />
	
	

	<!-- END PAGE LEVEL STYLES -->

	<link rel="shortcut icon" href="/Blog/public/media/image/favicon.ico" />

</head>

<!-- END HEAD -->

<!-- BEGIN BODY -->

<body class="page-header-fixed">

	<!-- BEGIN HEADER -->

	<div class="header navbar navbar-inverse navbar-fixed-top">

		<!-- BEGIN TOP NAVIGATION BAR -->

		<div class="navbar-inner">

			<div class="container-fluid">

				<!-- BEGIN LOGO -->

				<a class="brand" href="index.html">

				<img src="/Blog/public/media/image/logo.png" alt="logo" />

				</a>

				<!-- END LOGO -->

				<!-- BEGIN RESPONSIVE MENU TOGGLER -->

				<a href="javascript:;" class="btn-navbar collapsed" data-toggle="collapse" data-target=".nav-collapse">

				<img src="/Blog/public/media/image/menu-toggler.png" alt="" />

				</a>          

				<!-- END RESPONSIVE MENU TOGGLER -->            

				<!-- BEGIN TOP NAVIGATION MENU -->              

				<ul class="nav pull-right">

					<!-- BEGIN NOTIFICATION DROPDOWN -->   

					<li class="dropdown" id="header_notification_bar">

						<a href="#" class="dropdown-toggle" data-toggle="dropdown">

						<i class="icon-warning-sign"></i>

						<span class="badge">6</span>

						</a>

						<ul class="dropdown-menu extended notification">

							<li>

								<p>You have 14 new notifications</p>

							</li>

							<li>

								<a href="#">

								<span class="label label-success"><i class="icon-plus"></i></span>

								New user registered. 

								<span class="time">Just now</span>

								</a>

							</li>

							<li>

								<a href="#">

								<span class="label label-important"><i class="icon-bolt"></i></span>

								Server #12 overloaded. 

								<span class="time">15 mins</span>

								</a>

							</li>

							<li>

								<a href="#">

								<span class="label label-warning"><i class="icon-bell"></i></span>

								Server #2 not respoding.

								<span class="time">22 mins</span>

								</a>

							</li>

							<li>

								<a href="#">

								<span class="label label-info"><i class="icon-bullhorn"></i></span>

								Application error.

								<span class="time">40 mins</span>

								</a>

							</li>

							<li>

								<a href="#">

								<span class="label label-important"><i class="icon-bolt"></i></span>

								Database overloaded 68%. 

								<span class="time">2 hrs</span>

								</a>

							</li>

							<li>

								<a href="#">

								<span class="label label-important"><i class="icon-bolt"></i></span>

								2 user IP blocked.

								<span class="time">5 hrs</span>

								</a>

							</li>

							<li class="external">

								<a href="#">See all notifications <i class="m-icon-swapright"></i></a>

							</li>

						</ul>

					</li>

					<!-- END NOTIFICATION DROPDOWN -->

					<!-- BEGIN INBOX DROPDOWN -->

					<li class="dropdown" id="header_inbox_bar">

						<a href="#" class="dropdown-toggle" data-toggle="dropdown">

						<i class="icon-envelope"></i>

						<span class="badge">5</span>

						</a>

						<ul class="dropdown-menu extended inbox">

							<li>

								<p>You have 12 new messages</p>

							</li>

							<li>

								<a href="inbox.html?a=view">

								<span class="photo"><img src="/Blog/public/media/image/avatar2.jpg" alt="" /></span>

								<span class="subject">

								<span class="from">Lisa Wong</span>

								<span class="time">Just Now</span>

								</span>

								<span class="message">

								Vivamus sed auctor nibh congue nibh. auctor nibh

								auctor nibh...

								</span>  

								</a>

							</li>

							<li>

								<a href="inbox.html?a=view">

								<span class="photo"><img src="/Blog/public/media/image/avatar3.jpg" alt="" /></span>

								<span class="subject">

								<span class="from">Richard Doe</span>

								<span class="time">16 mins</span>

								</span>

								<span class="message">

								Vivamus sed congue nibh auctor nibh congue nibh. auctor nibh

								auctor nibh...

								</span>  

								</a>

							</li>

							<li>

								<a href="inbox.html?a=view">

								<span class="photo"><img src="/Blog/public/media/image/avatar1.jpg" alt="" /></span>

								<span class="subject">

								<span class="from"><?php echo (session('username')); ?></span>

								<span class="time">2 hrs</span>

								</span>

								<span class="message">

								Vivamus sed nibh auctor nibh congue nibh. auctor nibh

								auctor nibh...

								</span>  

								</a>

							</li>

							<li class="external">

								<a href="inbox.html">See all messages <i class="m-icon-swapright"></i></a>

							</li>

						</ul>

					</li>

					<!-- END INBOX DROPDOWN -->

					<!-- BEGIN TODO DROPDOWN -->

					<li class="dropdown" id="header_task_bar">

						<a href="#" class="dropdown-toggle" data-toggle="dropdown">

						<i class="icon-tasks"></i>

						<span class="badge">5</span>

						</a>

						<ul class="dropdown-menu extended tasks">

							<li>

								<p>You have 12 pending tasks</p>

							</li>

							<li>

								<a href="#">

								<span class="task">

								<span class="desc">New release v1.2</span>

								<span class="percent">30%</span>

								</span>

								<span class="progress progress-success ">

								<span style="width: 30%;" class="bar"></span>

								</span>

								</a>

							</li>

							<li>

								<a href="#">

								<span class="task">

								<span class="desc">Application deployment</span>

								<span class="percent">65%</span>

								</span>

								<span class="progress progress-danger progress-striped active">

								<span style="width: 65%;" class="bar"></span>

								</span>

								</a>

							</li>

							<li>

								<a href="#">

								<span class="task">

								<span class="desc">Mobile app release</span>

								<span class="percent">98%</span>

								</span>

								<span class="progress progress-success">

								<span style="width: 98%;" class="bar"></span>

								</span>

								</a>

							</li>

							<li>

								<a href="#">

								<span class="task">

								<span class="desc">Database migration</span>

								<span class="percent">10%</span>

								</span>

								<span class="progress progress-warning progress-striped">

								<span style="width: 10%;" class="bar"></span>

								</span>

								</a>

							</li>

							<li>

								<a href="#">

								<span class="task">

								<span class="desc">Web server upgrade</span>

								<span class="percent">58%</span>

								</span>

								<span class="progress progress-info">

								<span style="width: 58%;" class="bar"></span>

								</span>

								</a>

							</li>

							<li>

								<a href="#">

								<span class="task">

								<span class="desc">Mobile development</span>

								<span class="percent">85%</span>

								</span>

								<span class="progress progress-success">

								<span style="width: 85%;" class="bar"></span>

								</span>

								</a>

							</li>

							<li class="external">

								<a href="#">See all tasks <i class="m-icon-swapright"></i></a>

							</li>

						</ul>

					</li>

					<!-- END TODO DROPDOWN -->

					<!-- BEGIN USER LOGIN DROPDOWN -->

					<li class="dropdown user">

						<a href="#" class="dropdown-toggle" data-toggle="dropdown">

						<img alt="" src="/Blog/public/media/image/avatar1_small.jpg" />

						<span class="username"><?php echo (session('username')); ?></span>

						<i class="icon-angle-down"></i>

						</a>

						<ul class="dropdown-menu">

							<li><a href="extra_profile.html"><i class="icon-user"></i><?php echo (session('username')); ?></a></li>

							<li><a href="page_calendar.html"><i class="icon-calendar"></i> My Calendar</a></li>

							<li><a href="inbox.html"><i class="icon-envelope"></i> My Inbox(3)</a></li>

							<li><a href="#"><i class="icon-tasks"></i> My Tasks</a></li>

							<li class="divider"></li>

							<li><a href="extra_lock.html"><i class="icon-lock"></i> Lock Screen</a></li>

							<li><a href="<?php echo U('Login/logout');?>"><i class="icon-key"></i> 退出</a></li>

						</ul>

					</li>

					<!-- END USER LOGIN DROPDOWN -->

				</ul>

				<!-- END TOP NAVIGATION MENU --> 

			</div>

		</div>

		<!-- END TOP NAVIGATION BAR -->

	</div>

	<!-- END HEADER -->

	<!-- BEGIN CONTAINER -->

	<div class="page-container row-fluid">

		<!-- BEGIN SIDEBAR -->

		<div class="page-sidebar nav-collapse collapse">

			<!-- BEGIN SIDEBAR MENU -->        

			<ul class="page-sidebar-menu">

				<li>

					<!-- BEGIN SIDEBAR TOGGLER BUTTON -->

					<div class="sidebar-toggler hidden-phone"></div>

					<!-- BEGIN SIDEBAR TOGGLER BUTTON -->

				</li>

				<li>

					<!-- BEGIN RESPONSIVE QUICK SEARCH FORM -->

					<form class="sidebar-search">

						<div class="input-box">

							<a href="javascript:;" class="remove"></a>

							<input type="text" placeholder="搜索..." />

							<input type="button" class="submit" value=" " />

						</div>

					</form>

					<!-- END RESPONSIVE QUICK SEARCH FORM -->

				</li>
				
				
				<?php if(is_array($menu)): foreach($menu as $k=>$v): ?><li class="<?php echo ($v["active"]); ?>">
					<a href="javascript:;">
					<i class="<?php echo ($v["icon"]); ?>"></i> 
					<span class="title"><?php echo ($v["title"]); ?></span>
					<span class="arrow "></span>
					</a>
					<ul class="sub-menu">
						<li class="<?php echo ($v["active"]); ?>">
							<a href="/Blog/index.php/Index<?php echo ($v["url"]); ?>"><?php echo ($v["title"]); ?></a>
						</li>
					</ul>
				</li><?php endforeach; endif; ?>
				
				
	<li class="start">

		<a href="/Blog/index.php">

		<i class="icon-home"></i> 

		<span class="title">管理首页</span>

		</a>

	</li>

	<li class="">

		<a href="javascript:;">

		<i class="icon-cogs"></i> 

		<span class="title">系统设置</span>

		<span class="arrow "></span>

		</a>

		<ul class="sub-menu">

			<li >

				<a href="layout_horizontal_sidebar_menu.html">

				数据库设置</a>

			</li>

		</ul>

	</li>

	<li class="active">

		<a href="javascript:;">

		<i class="icon-bookmark-empty"></i> 

		<span class="title">文章管理</span>

		<span class="arrow "></span>

		</a>

		<ul class="sub-menu">

			<li class="active">

				<a href="<?php echo U('Article/artList');?>">

				文章列表</a>

			</li>

			<li >

				<a href="<?php echo U('Article/addArt');?>">

				添加文章</a>

			</li>

			<li class="">

				<a href="<?php echo U('Article/cateList');?>">

				分类列表</a>

			</li>

			<li >

				<a href="<?php echo U('Article/addCate');?>">

				添加分类</a>

			</li>

		</ul>

	</li>

	<li>

		<a href="javascript:;">

		<i class="icon-user"></i> 

		<span class="title">用户管理</span>

		<span class="arrow "></span>

		</a>

		<ul class="sub-menu">

			<li>

				<a href="<?php echo U('User/userlist');?>">

				用户列表</a>

			</li>
			<li class="">

				<a href="<?php echo U('User/addUser');?>">

				添加用户</a>

			</li>

			<li >

				<a href="<?php echo U('User/editPass');?>">

				修改密码</a>

			</li>

		</ul>

	</li>

	<li class="">

		<a href="javascript:;">

		<i class="icon-th"></i> 

		<span class="title">Data Tables</span>

		<span class="selected"></span>

		<span class="arrow open"></span>

		</a>

		<ul class="sub-menu">

			<li class="">

				<a href="table_basic.html">

				Basic Tables</a>

			</li>

		</ul>

	</li>

			</ul>

			<!-- END SIDEBAR MENU -->

		</div>

		<!-- END SIDEBAR -->

		<!-- BEGIN PAGE -->

		<div class="page-content">

			<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->

			<div id="portlet-config" class="modal hide">

				<div class="modal-header">

					<button data-dismiss="modal" class="close" type="button"></button>

					<h3>portlet Settings</h3>

				</div>

				<div class="modal-body">

					<p>Here will be a configuration form</p>

				</div>

			</div>

			<!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->

			<!-- BEGIN PAGE CONTAINER-->        
			
			<div class="container-fluid">

				<!-- BEGIN PAGE HEADER-->

				<div class="row-fluid">

					<div class="span12">

						<!-- BEGIN PAGE TITLE & BREADCRUMB-->
										
						<h3 class="page-title">
							博客系统 <small>系统概况</small>
						</h3>
						<ul class="breadcrumb">
							<li>
								<i class="icon-home"></i>
								<a href="/Blog/index.php">主页</a>
								<?php if(is_array($bread)): foreach($bread as $k=>$v): ?><i class="icon-angle-right"></i>
									<a href="/Blog/index.php/Index/Set/menu<?php echo ($v["url"]); ?>"><?php echo ($v["title"]); ?></a><?php endforeach; endif; ?> 
							</li>
						</ul>
						
						<!-- END PAGE TITLE & BREADCRUMB-->
					</div>
				</div>

				<!-- END PAGE HEADER-->

				<!-- BEGIN PAGE CONTENT--> 
				
<div class="row-fluid">
	<div class="span12">
		<!-- BEGIN SAMPLE TABLE PORTLET-->
		<div class="portlet box red">
			<div class="portlet-title">
				<div class="caption"><i class="icon-cogs"></i>文章列表</div>
				<div class="tools">
					<a href="javascript:;" class="collapse"></a>
					<a href="#portlet-config" data-toggle="modal" class="config"></a>
					<a href="javascript:;" class="reload"></a>
					<a href="javascript:;" class="remove"></a>
				</div>
			</div>
			<div class="portlet-body">
				<table class="table table-hover">
					<thead>
						<tr>
							<th>#</th>
							<th>文章名称</th>
							<th>分类</th>
							<th>排序</th>
							<th>创建时间</th>
							<th>修改时间</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>						
						<?php if(is_array($bread)): foreach($bread as $k=>$v): ?><tr>
							<td><?php echo ($k+1); ?></td>
							<td><?php echo ($v["guid"]); ?></td>
							<td><?php echo ($v["id"]); ?></td>
							<td><?php echo ($v["pid"]); ?></td>
							<td><?php echo ($v["sort"]); ?></td>
							<td><?php echo ($v["title"]); ?></td>
							<td>
								<a href="<?php echo U('editArt', 'aid='.$v['aid']);?>" class="btn mini purple"><i class="icon-edit"></i> 修改</a>
								<a href="<?php echo U('delArt', 'aid='.$v['aid']);?>" class="btn mini black" onClick="return confirm('确定要删除此文章吗')"><i class="icon-trash"></i> 删除</a>
							</td>
						</tr><?php endforeach; endif; ?>
						<tr>
							<td colspan="7">
								<div class="pagination dataTables_paginate"><?php echo ($page); ?></div>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
		<!-- END SAMPLE TABLE PORTLET-->
	</div>
	</div>
         
				
			<!-- END PAGE CONTAINER-->
		</div>

		<!-- END PAGE -->

	</div>

	<!-- END CONTAINER -->

	<!-- BEGIN FOOTER -->

	<div class="footer">

		<div class="footer-inner">

			2015 &copy; Blog by Garen

		</div>

		<div class="footer-tools">

			<span class="go-top">

			<i class="icon-angle-up"></i>

			</span>

		</div>

	</div>

	<!-- END FOOTER -->

	<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->

	<!-- BEGIN CORE PLUGINS -->

	<script src="/Blog/public/media/js/jquery-1.10.1.min.js" type="text/javascript"></script>

	<script src="/Blog/public/media/js/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>

	<!-- IMPORTANT! Load jquery-ui-1.10.1.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->

	<script src="/Blog/public/media/js/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>      

	<script src="/Blog/public/media/js/bootstrap.min.js" type="text/javascript"></script>

	<!--[if lt IE 9]>

	<script src="/Blog/public/media/js/excanvas.min.js"></script>

	<script src="/Blog/public/media/js/respond.min.js"></script>  

	<![endif]-->   

	<script src="/Blog/public/media/js/jquery.slimscroll.min.js" type="text/javascript"></script>

	<script src="/Blog/public/media/js/jquery.blockui.min.js" type="text/javascript"></script>  

	<script src="/Blog/public/media/js/jquery.cookie.min.js" type="text/javascript"></script>

	<script src="/Blog/public/media/js/jquery.uniform.min.js" type="text/javascript" ></script>

	<!-- END CORE PLUGINS -->

	<script src="/Blog/public/media/js/app.js"></script>      

	<script>

		jQuery(document).ready(function() {       

		   // initiate layout and plugins

		   App.init();

		});

	</script>

</body>

<!-- END BODY -->

</html>